#ifndef MOTOR_CONTROLLER_H
#define MOTOR_CONTROLLER_H

#include <Arduino.h>

// 电机控制接口
class MotorController {
public:
  virtual void init() = 0;
  virtual void forward(int speed) = 0;
  virtual void backward(int speed) = 0;
  virtual void turnLeft(int speed) = 0;
  virtual void turnRight(int speed) = 0;
  virtual void stop() = 0;
  virtual void setSpeed(int speed) = 0;
  virtual String getType() = 0;
};

#endif // MOTOR_CONTROLLER_H